projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b4cda3
)
net: mvgbe: fallback phy-mode to GMII
author
Chris Packham
<
[email protected]
>
Tue, 4 Dec 2018 06:54:30 +0000
(19:54 +1300)
committer
Joe Hershberger
<
[email protected]
>
Thu, 24 Jan 2019 17:35:29 +0000
(11:35 -0600)
Some existing device trees don't specify a phy-mode so fallback to GMII
when a phy-mode is not provided.
Signed-off-by: Chris Packham <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
drivers/net/mvgbe.c
patch
|
blob
|
history
diff --git
a/drivers/net/mvgbe.c
b/drivers/net/mvgbe.c
index 74fed7abd83772a2697f1188b36e1e306a215110..037e59ec6e3ccdfd3169de17ccb4d56e889525ba 100644
(file)
--- a/
drivers/net/mvgbe.c
+++ b/
drivers/net/mvgbe.c
@@
-1005,10
+1005,8
@@
static int mvgbe_ofdata_to_platdata(struct udevice *dev)
phy_mode = fdt_getprop(gd->fdt_blob, pnode, "phy-mode", NULL);
if (phy_mode)
pdata->phy_interface = phy_get_interface_by_name(phy_mode);
- if (pdata->phy_interface == -1) {
- debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
- return -EINVAL;
- }
+ else
+ pdata->phy_interface = PHY_INTERFACE_MODE_GMII;
dmvgbe->phy_interface = pdata->phy_interface;